const {model} = require('../conn/index')
const userSchema=require('../schema/userSchema')
class UserModel{
    constructor(){
        this.model=model('users',userSchema,'users')
    }
    checkUser({name,password}){
        return this.model.find({name:name,password:password})
    }
}
module.exports=new UserModel